﻿@model JTWEB3.Models.Roles
@{
    ViewData["Title"] = "AddUser";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

    <h1>@ViewData["Title"]</h1>

<dl class="row">
    <dt class="col-sm-2">
        @Model.RoleName
    </dt>
    <dd>

    </dd>
    <dt class="col-sm-10">
        @Model.RoleId
    </dt>

</dl>
<form method="post" asp-action="AddUser">
    <input type="hidden" asp-for="RoleId" class="form-control" value="@Model.RoleId" />
    <input type="hidden" asp-for="RoleName" class="form-control" value="@Model.RoleName" />
    <select class="form-control" asp-for="UserId" asp-items="@(new SelectList(Model.UserList,"Id","UserName"))">
        <option>--请选择一个用户--</option>
    </select>
    <hr />
    <button type="submit" class="btn btn-outline-success">保存</button>
</form>